// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_SYS_PERIOD
// * CreateDate    : 2014-06-05 18:30:45
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:45
// * LastChanger   : 2014-06-05 18:30:45
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class SysPeriodTable : TableInfo
    {
		public const string C_TableName = "SYS_PERIOD";
		
		public const string C_ID = "ID";
		public const string C_IS_ACTIVE = "IS_ACTIVE";
		public const string C_YEAR = "YEAR";
		public const string C_MONTH = "MONTH";
		public const string C_DAY = "DAY";
		public const string C_DESCRIPTION = "DESCRIPTION";
		public const string C_CALENDAR_ID = "CALENDAR_ID";
		public const string C_PERIOD_TYPE = "PERIOD_TYPE";
		
		public SysPeriodTable()
        {
            _tableName = "SYS_PERIOD";
        }
		
		protected static SysPeriodTable _current;
        public static SysPeriodTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new SysPeriodTable();

            _current.Add(C_ID, new ColumnInfo(C_ID,"Id", true, typeof(string)));
            _current.Add(C_IS_ACTIVE, new ColumnInfo(C_IS_ACTIVE,"IsActive", false, typeof(int)));
            _current.Add(C_YEAR, new ColumnInfo(C_YEAR,"Year", false, typeof(int)));
            _current.Add(C_MONTH, new ColumnInfo(C_MONTH,"Month", false, typeof(int)));
            _current.Add(C_DAY, new ColumnInfo(C_DAY,"Day", false, typeof(int)));
            _current.Add(C_DESCRIPTION, new ColumnInfo(C_DESCRIPTION,"Description", false, typeof(string)));
            _current.Add(C_CALENDAR_ID, new ColumnInfo(C_CALENDAR_ID,"CalendarId", false, typeof(string)));
            _current.Add(C_PERIOD_TYPE, new ColumnInfo(C_PERIOD_TYPE,"PeriodType", false, typeof(int)));
			
		}
		
		public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }
		
		public ColumnInfo IS_ACTIVE
        {
            get { return this[C_IS_ACTIVE]; }
        }
		
		public ColumnInfo YEAR
        {
            get { return this[C_YEAR]; }
        }
		
		public ColumnInfo MONTH
        {
            get { return this[C_MONTH]; }
        }
		
		public ColumnInfo DAY
        {
            get { return this[C_DAY]; }
        }
		
		public ColumnInfo DESCRIPTION
        {
            get { return this[C_DESCRIPTION]; }
        }
		
		public ColumnInfo CALENDAR_ID
        {
            get { return this[C_CALENDAR_ID]; }
        }
		
		public ColumnInfo PERIOD_TYPE
        {
            get { return this[C_PERIOD_TYPE]; }
        }
		
		
		
	}
}

